package com.example.springsecurity.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.example.springsecurity.entity.base.BaseEntity;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * 菜单信息表(SystemMenu)表实体类
 *
 * @author aman
 * @since 2025-01-15 16:59:00
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "system_menu")
@AllArgsConstructor
@NoArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
public class SystemMenu extends BaseEntity {
    //父节点id
    private Integer parentId;
    //唯一标识路径
    private String path;
    //1：目录；2：菜单；3: 按钮
    private String menuType;
    //菜单名称
    private String menuName;
    //路由名称
    private String routeName;
    //权限标识
    private String permission = "0";
    //组件标识
    private String component;
    //元数据
    private String meta;
    //状态；1:可用，2:禁用
    private Integer status;
    //是否已删除：0->未删除；1->已删除
    private Integer deleted;
    //备注
    private String remark;
}
